<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">单位基本情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td align="right" width="20%" nowrap>单位名称：</td>
		<td width="30%">&nbsp; 
		     <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
		     <input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
						value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
		    <span name="organizations/organization[0]/org_name">
		        <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
		<td align="right" width="20%">注册地址：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/address"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap width="20%">企业所属地区：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/area_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/area_name" />
		    </span>
		</td>
		<td align="right" width="20%">组织机构代码：</td>
		<td width="30%">&nbsp;
		    <span name="organizations/organization[0]/org_no"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">营业执照注册号：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/org_licence">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_licence" />
		    </span>
		</td>
		<td align="right">税务登记号：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/tax_local_no"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/tax_local_no" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">注册资本：</td>
		<td>&nbsp;
		     <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund" />
		</td>
		<td align="right">注册类型：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/nature_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">注册日期：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/registe_date">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_date" />
		    </span>
		</td>
		<td align="right">行业类型：</td>
		<td>&nbsp;
		<x:out select="$xmlData/data/units/unit/industry_type"/>
		</td>
	</tr>
	<tr>
		<td align="right">母公司名称：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/main_org_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/main_org_name" />
		    </span>
		</td>
		<td align="right">母公司地址：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/main_org_addr"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/main_org_addr" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right">单位特性：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/chk_characteristic_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_characteristic_name" />
		    </span>
		</td>
		<td align="right">单位资质：</td>
		<td>&nbsp;
		    <span name="organizations/organization[0]/chk_authenticate_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_authenticate_name" /> 
		    </span>
		</td>
	</tr>
	<tr>
		<td align="right" nowrap>单位拥有研发机构状况：</td>
		<td>&nbsp;
		    <x:out select="$xmlData/data/units/unit/research"/>
		</td>
	</tr>
	
</table>
<div class="t_bar">人员情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="contactInfo" cellspacing="1">
	<tr>
		<td align="right">法人代表：</td>
		<td>&nbsp;
			    <x:out select="$xmlData/data/organization_persons/cname"/>
		</td>
		<td align="right">证件类型：</td>
		<td>&nbsp;
			    <x:out select="$xmlData/data/organization_persons/id_type_name"/>
		</td>
		<td align="right">证件号码：</td>
		<td>&nbsp;
			    <x:out select="$xmlData/data/organization_persons/id_no"/>
		</td>
	</tr>
	<tr>
		<td align="right" rowspan="2">员工人数：</td>
		<td rowspan="2">&nbsp;
		   <x:out select="$xmlData/data/organization_persons/people_count_total" />人
		</td>
		<td align="right">其中：研发人员数：</td>
		<td>&nbsp;
		<x:out select="$xmlData/data/organization_persons/job_yanfa" />人
		</td>
		<td align="right">占员工总数比例：</td>
		<td>&nbsp;
		    <span name="proposal/proportion1"> 
			    <x:out select="$xmlData/data/proposal/proportion1"/>
		    </span>
		</td>
	</tr>
	<tr>
	<td align="right">其中：大学本科以上人数：</td>
		<td>&nbsp;
		<x:out select="$xmlData/data/organization_persons/bachelor_up" />人
		</td>
		<td align="right">占员工总数比例：</td>
		<td>&nbsp;
		    <span name="proposal/proportion2"> 
			    <x:out select="$xmlData/data/proposal/proportion2"/>
		    </span>
		</td>
	</tr>
</table>
<div class="t_bar">主要股东、出资人信息（前5位）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="shareholders" cellspacing="1">
	<tr align="center" >
				<th width="17%">股东/出资人名称</th>
				<th width="12%" nowrap>出资金额（万元）</th>
				<th width="10%">出资方式</th>
				<th width="10%">出资比例(%)</th>
				<th width="11%">入股时间</th>
				<th width="14%">证件类型</th>
				<th width="18%">证件号码</th>
			</tr>
			
	
	<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
	<tr align="center">
					<td align="center" nowrap="nowrap">
					    <span name="organization_shareholders/shareholder[${flag}${index}]/cname"><x:out select="$shareholder/cname" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_amount"><x:out select="$shareholder/invest_amount" /></span>
					</td>
					<td align="left" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_type_name"><x:out select="$shareholder/invest_type_name" /></span>
          			</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/invest_percent"><x:out select="$shareholder/invest_percent" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/buy_stock_date"><x:out select="$shareholder/buy_stock_date" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/card_type_name"><x:out select="$shareholder/card_type_name" /></span>
					</td>
					<td align="center" nowrap="nowrap">
					<span name="organization_shareholders/shareholder[${flag}${index}]/card_code"><x:out select="$shareholder/card_code" /></span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
</table>
<div class="t_bar">拥有知识产权状况（件）</div>
<%-- <table id="knowledge_table" width="100%" border="0" cellpadding="0" cellspacing="1" class="t_css">
			<tr>
				<td rowspan="2"  align="center">专利申请总数</td>
				<td colspan="3" align="center" class="li_2">其中</td>
	        </tr>
	        <tr class="li_2">
				<td align="center">发明</td>
				<td align="center">实用新型</td>
				<td align="center">外观设计</td>
	        </tr>
	        <tr>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/request_tatal"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/request_invent"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/request_useful"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/request_facade"/></td>
	        </tr>
	        
	        <tr>
				<td rowspan="2" align="center">专利授权总数</td>
				<td colspan="3" align="center" class="li_2">其中</td>
	        </tr>
	        <tr class="li_2">
				<td align="center">发明</td>
				<td align="center">实用新型</td>
				<td align="center">外观设计</td>
	        </tr>
	        <tr>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_tatal"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_invent"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_useful"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_facade"/></td>
	        </tr>
	        
	        <tr class="li_2">
				<td align="center">软件著作权</td>
				<td align="center">植物新品种</td>
				<td align="center">集成电布图设计</td>
				<td align="center">其它知识产权</td>
	        </tr>
	        <tr>
				<td align="center"><x:out select= "$xmlData/data/knowledge/right/soft_right"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/right/new_plant"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/right/circuit_design"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/right/other_right"/></td>
	        </tr>
	        
	        <tr>
				<td rowspan="2" align="center">技术标准</td>
				<td colspan="3" align="center" class="li_2">其中</td>
	        </tr>
	        <tr>	        	
				<td colspan="3" align="center" class="li_2">
					<table width="90%">
						<tr class="li_2">
							<td align="center">国际标准</td>
							<td align="center">国家标准</td>
							<td align="center">行业标准</td>
							<td align="center">地方标准</td>
						</tr>
					</table>
				</td>	
	        </tr>
	        <tr>
	        	<td align="center"><x:out select= "$xmlData/data/knowledge/standard/skill_standard"/></td>
	        	<td colspan="3" align="center">
					<table width="90%">
						<tr>
							<td align="center"><x:out select= "$xmlData/data/knowledge/standard/internation_standard"/></td>
							<td align="center"><x:out select= "$xmlData/data/knowledge/standard/nation_standard"/></td>
							<td align="center"><x:out select= "$xmlData/data/knowledge/standard/industry_standard"/></td>
							<td align="center"><x:out select= "$xmlData/data/knowledge/standard/local_standard"/></td>
				        </tr>
					</table>
				</td>
	        </tr>
	        
	        <tr>
				<td rowspan="2" align="center">企业品牌数</td>
				<td colspan="3" align="center" class="li_2">其中</td>
	        </tr>
	        <tr class="li_2">
				<td align="center">中国驰名商标</td>
				<td align="center">江苏省著名商标</td>
				<td align="center">江苏省名牌产品</td>
	        </tr>
	        <tr>
				<td align="center"><x:out select= "$xmlData/data/knowledge/brand/brand_tatal"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/brand/china_famous"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/brand/jiangsu_famous"/></td>
				<td align="center"><x:out select= "$xmlData/data/knowledge/brand/jiangsu_good"/></td>
	        </tr>
		</table> --%>
 <table class="table01 t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
  <tr class="li_2">
    <td rowspan="2" align="center" style="vertical-align: middle;" width="10%">专利申请总数</td>
    <td rowspan="2" align="center" width="6%"><x:out select= "$xmlData/data/knowledge/patent/request_tatal"/></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_2">
    <td align="center" width="10%">发明</td>
    <td align="center" width="10%"><x:out select= "$xmlData/data/knowledge/patent/request_invent"/></td>
    <td align="center" width="10%">实用新型</td>
    <td align="center" width="10%"><x:out select= "$xmlData/data/knowledge/patent/request_useful"/></td>
    <td align="center" width="10%">外观设计</td>
    <td align="center" width="10%"><x:out select= "$xmlData/data/knowledge/patent/request_facade"/></td>
  </tr>

  <tr class="li_3">
    <td rowspan="2" align="center" style="vertical-align: middle;">专利授权总数</td>
    <td rowspan="2" align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_tatal"/></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_3">
    <td align="center">发明</td>
	<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_invent"/></td>
	<td align="center">实用新型</td>
	<td align="center"><x:out select= "$xmlData/data/knowledge/patent/authorize_useful"/></td>
	<td align="center">外观设计 </td>
	<td align="center" ><x:out select= "$xmlData/data/knowledge/patent/authorize_facade"/></td>
  </tr>
 
  <tr class="li_2">
    <td align="center">软件著作权</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/right/soft_right"/></td>
    <td align="center">动植物新品种</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/right/new_plant"/></td>
    <td align="center">集成电布图设计</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/right/circuit_design"/></td>
    <td align="center">其他知识产权</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/right/other_right"/></td>
  </tr>
  <tr class="li_3">
    <td rowspan="2" align="center" style="vertical-align: middle;">技术标准</td>
    <td rowspan="2" align="center"> <x:out select= "$xmlData/data/knowledge/standard/skill_standard"/></td>
    <td colspan="6" align="center">其中</td>
  </tr>
  <tr class="li_3">
    <td align="center">国际标准</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/standard/internation_standard"/>
    <td align="center">国家标准</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/standard/nation_standard"/></td>
    <td align="center">行业标准</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/standard/industry_standard"/></td>
  </tr>
  <tr class="li_3">
    <td align="center">地方标准</td>
    <td colspan="1" align="center"><x:out select= "$xmlData/data/knowledge/standard/local_standard"/></td>
    <td colspan="6">&nbsp;</td>
  </tr>
  <tr class="li_2">
    <td rowspan="2" align="center" style="vertical-align: middle;">企业品牌数</td>
    <td rowspan="2" align="center"><x:out select= "$xmlData/data/knowledge/brand/brand_tatal"/></td>
    <td colspan="6" align="center">其中</td>
    </tr>
  <tr class="li_2">
    <td align="center">中国驰名商标</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/brand/china_famous"/></td>
    <td align="center">江苏省著名商标</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/brand/jiangsu_famous"/></td>
    <td align="center">江苏省名牌商标</td>
    <td align="center"><x:out select= "$xmlData/data/knowledge/brand/jiangsu_good"/></td>
  </tr>
 
  </table>
		<div class="t_bar">近3年获得各级政府扶持</div>
		<table id="fund_projects" border="0" cellspacing="0" cellpadding="0" class="table01" style="width: 100%;">
			<tbody>
			<tr>
				<th width="4%" rowspan="2">序号</th>
				<th rowspan="2">项目名称</th>
				<th width="14%" rowspan="2">资助部门</th>
				<th width="40%" colspan="5">政府扶持资金（单位：万元）</th>
				<th width="20%" rowspan="2">资助起止日期</th>
				<th width="5%" rowspan="2">资助形式</th>
				<th width="8%" rowspan="2">项目进度</th>
			</tr>
			<tr>
				<th>小计</th>
				<th>国家</th>
				<th>省级</th>
				<th>市级</th>
				<th>区级</th>
			</tr>
			
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_research/fund_project" var="fund_project">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td align="center">
						<span name="research/fund_project[${flag}${index}]@sequence_no"><x:out select="$fund_project/@sequence_no" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/ctitle"><x:out select="$fund_project/ctitle" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_dept"><x:out select="$fund_project/award_dept" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_amt_total"><x:out select="$fund_project/award_amt_total" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_amt_nation"><x:out select="$fund_project/award_amt_nation" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_amt_province"><x:out select="$fund_project/award_amt_province" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_amt_city"><x:out select="$fund_project/award_amt_city" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/award_amt_district"><x:out select="$fund_project/award_amt_district" /></span>
					</td>	
					<td nowrap="nowrap">
					<span name="research/fund_project[${flag}${index}]/award_start_date"><x:out select="$fund_project/award_start_date" /></span>
	          			至
	          		<span name="research/fund_project[${flag}${index}]/award_end_date"><x:out select="$fund_project/award_end_date" /></span>
					</td>	
					<td>
					<span name="research/fund_project[${flag}${index}]/award_type_name"><x:out select="$fund_project/award_type_name" /></span>
					</td>
					<td>
					<span name="research/fund_project[${flag}${index}]/accept_flag_name"><x:out select="$fund_project/accept_flag_name" /></span>
          			</td>          			
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
		</table>


<script type="text/javascript">
	$(function() {
		$("#orgInfo tr:even").addClass("li_1");
		$("#orgInfo tr:odd").addClass("li_2");
		$("#contactInfo tr:even").addClass("li_1");
		$("#contactInfo tr:odd").addClass("li_2");
		$("#shareholders tr:even").addClass("li_1");
		$("#shareholders tr:odd").addClass("li_2");
		$("#knowledge_table tr:even").addClass("li_1");
		$("#knowledge_table tr:odd").addClass("li_2");
	});

	function Percentage(){
		var staff = $("#staff").val();
		var research = $("#research").val();
		var degree = $("#degree").val();
		$("span[name$=proportion1]").text(formatNumber((research/staff).toString(),9,4,4)*100+"%");
		$("span[name$=proportion2]").text(formatNumber((degree/staff).toString(),9,4,4)*100+"%");
	}
	
	
</script>